#include "thread.hpp"
#include <unistd.h>

using namespace threadModule;

void routine(int a)
{
    std::cout << a << std::endl;
}

void routine2(std::string b)
{
    std::cout << b << std::endl;
}

void test()
{
    thread<int> t1(routine, 10);

    t1.start();

    t1.join();

    thread<std::string> t2(routine2, "hahha");

    t2.start();

    t2.join();
}

int main()
{
    test();

    return 0;
}
